package chat.main;

import org.eclipse.jetty.server.Handler;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.handler.HandlerList;
import org.eclipse.jetty.webapp.WebAppContext;

public class AjaxChatMain {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		Server server = new Server(8090);
		WebAppContext webapp = new WebAppContext();
		webapp.setContextPath("/");
		webapp.setResourceBase("WebContent");
		webapp.setDescriptor("WebContent/WEB-INF/web.xml");
		
		HandlerList handlers = new HandlerList();
		handlers.setHandlers(new Handler[] {webapp});
		
		server.setHandler(handlers);
		server.start();
		server.join();
	}

}
